using UnityEngine;
using System.Collections;

public class CoinScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
        
	}
	
	// Update is called once per frame
	void Update () {

        transform.Rotate(Vector3.up * 4.0f);
	}

    void OnTriggerEnter(Collider c)
    {
        GameScript.score += 500;
        transform.parent = null;
        Destroy(gameObject);
    }

}
